package common;

public class Wall {
	
	public Node n1;
	public Node n2;
	
	public int keyID = 0;
	
	public Wall(Node n1, Node n2){
		if (n1.isAdjacent(n2)){
			this.n1 = n1;
			this.n2 = n2;
		}
		else
		{
			System.out.println("pas adjacent");
		}
		
	}
	
	public boolean equals(Wall w){
		return ((this.n1.equals(w.n1) && this.n2.equals(w.n2)) || 
				(this.n1.equals(w.n2) && this.n2.equals(w.n1)));
	}
	
	public String toString(){
		return "("+n1+"|"+n2+")";
	}

}
